import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SMarryBless
    
    export  class SMarryBless extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SMarryBless();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.blessType);
            arg1.writeString(this.fromPlayerName);
            arg1.writeString(this.toPlayerName);
            arg1.writeInt(this.num);
            arg1.writeDate(this.createDt);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.blessType = arg1.readInt();
            this.fromPlayerName = arg1.readString();
            this.toPlayerName = arg1.readString();
            this.num = arg1.readInt();
            this.createDt = arg1.readDate();
            return;
        }

        public /* const */_type: int=194;

        public /* var */blessType: int;

        public /* var */fromPlayerName: string;

        public /* var */toPlayerName: string;

        public /* var */num: int;

        public /* var */createDt: Date;

        public static /* var */_regist: SMarryBless;
    }

            SMarryBless._regist = new SMarryBless(true);
        